<?php
if (!defined('INCONFIG')) {
    Header("Location: ../index.php");
    die();
}
$q = array(
    0 => 'SELECT name, config_type.type, value FROM config , config_type WHERE config.type =  id;',
    10 => 'UPDATE `cache` SET `recache`=\'1\' WHERE `page`=\'{page}\';',
    11 => 'SELECT * FROM `cache` WHERE `page`=\'{page}\' AND `params`=\'{params}\';',
    12 => 'INSERT INTO `cache` (`page`, `params`) VALUES (\'{page}\', \'{params}\');',
    13 => 'UPDATE `cache` SET `time`=\'{time}\', `recache`=\'0\' WHERE `id`=\'{id}\';',
    669 => "INSERT INTO `config` (`name`, `type`, `value`) VALUES ('{name}', '{type}', '{val}');",
    670 => "UPDATE `config` SET `name`='{name}', `type`='{type}', `value`='{val}' WHERE (`name`='{name}') AND (`type`='{type}') LIMIT 1;",
    671 => "SELECT * FROM `config` WHERE (`name`='{name}') AND (`type`='{type}');",
    672 => "SELECT id FROM config_type WHERE type='{type_id}';",
    673 => "INSERT INTO `config_type` (`type`) VALUES ('{type}')",
);
?>